import Vue from 'vue'
import Router from 'vue-router'
//@ 它是一个别名 代表的是src目录
import HelloWorld from '@/components/HelloWorld'
import patch from '@/components/patch_demo.vue'
import put from '@/components/put_demo.vue'
import del from '@/components/del_demo.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/get_post',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/patch',
      component: patch
    },
    {
      path: '/put',
      component: put
    },
    {
      path: '/del',
      component: del
    }
  ]
})
